﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Class1
    {
        public void Img(double r)
        {
            Console.WriteLine("请输入圆的半径");
            r = double.Parse(Console.ReadLine());
            double sum = 3.14 * r * r;
            Console.WriteLine("圆的面积为" + sum);
        }
        public int Img(int c ,int k)
        {   
            Console.WriteLine("请输入长");
            c = int.Parse(Console.ReadLine());
            Console.WriteLine("请输入宽");
            k = int.Parse(Console.ReadLine());
            int sum = c * k;
            Console.WriteLine("长方形的面积为"+sum);
            return sum;

        }

        
    }
}
